home *** CD-ROM | disk | FTP | other *** search
- Path: anvil.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Need help with a STRING that won't go away!!!
- Date: 3 Apr 1996 12:47:17 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4juo4lINNifu@anvil.ugrad.cs.ubc.ca>
- References: <4jh7e2$jjr@abel.cc.sunysb.edu> <828377318snz@genesis.demon.co.uk>
- NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
-
- In article <828377318snz@genesis.demon.co.uk>,
- Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- >> while(!feof(sourcefp))
- >> {
- >> if (ferror(sourcefp))
- >> {
- >> printf("\nError while reading source file.\n");
- >> exit(1);
- >> }
- >> fgets(line,linemax,sourcefp); /* Get Bad Record */
- >
- >The system isn't prescient - feof() and ferror() test whether the last
- ^^^^^^^^^
-
- That is just too damn English! I love it!
- --
-
-